try:
    import os
    print("yolov5_init0")
    path1 = os.path.dirname(__file__)
    print(path1)
    from project.yolov5 import train, infer, config, export
    # train, infer, config, export
except Exception as e:
    print(str(e))
    print("yolov5_init1")
    import os
    import sys
    path1 = os.path.dirname(__file__)
    print(path1)
    print("yolov5_init2")
    root = os.path.dirname(os.path.dirname(__file__))
    print(root)
    while root in sys.path:
        sys.path.remove(root)
    sys.path.append(root)
    print(sys.path)
    from yolov5 import train, infer, config, export
